'use strict';

const express = require('express');
const path = require('path');

const mainRouter = express.Router();
const mainCtr = require('../../controllers/mainController.js');

mainRouter.get('/main_index',mainCtr.main);
mainRouter.post('/adminInfo',mainCtr.adminInfo);
mainRouter.get('/register',mainCtr.register);
mainRouter.post('/registerData',mainCtr.registerData);
mainRouter.post('/sendCode',mainCtr.sendCode);
mainRouter.get('/login',mainCtr.login);
mainRouter.post('/loginData',mainCtr.loginData);
mainRouter.get('/imgCode',mainCtr.imgCode);
mainRouter.get('/logout',mainCtr.logout);
module.exports = mainRouter;